package com.myexploit.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//1.标识配置类  配置类一般与@Bean注解联用
@Configuration
public class MybatisPlusConfig {

    //需要给对象交给容器管理Map集合 map<paginationInterceptor> 方法名，实例化之后的对象
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}